package tech.aistar.entity;

import java.io.Serializable;
import java.util.Date;

public class DemandOrder implements Serializable {

    private Integer id;

    private Integer demandId;

    private String orderNumber;

    private Integer userinfoId;

    private Date commitTime;

    private Integer status;

    private String field1;

    private String field2;

    private UserInfo userInfo;

    private Demand demand;

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setDemand(Demand demand) {
        this.demand = demand;
    }

    public Demand getDemand() {
        return demand;
    }


    private static final long serialVersionUID = 1L;


    public Integer getId() {
        return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }


    public Integer getDemandId() {
        return demandId;
    }


    public void setDemandId(Integer demandId) {
        this.demandId = demandId;
    }


    public String getOrderNumber() {
        return orderNumber;
    }


    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber == null ? null : orderNumber.trim();
    }


    public Integer getUserinfoId() {
        return userinfoId;
    }


    public void setUserinfoId(Integer userinfoId) {
        this.userinfoId = userinfoId;
    }


    public Date getCommitTime() {
        return commitTime;
    }


    public void setCommitTime(Date commitTime) {
        this.commitTime = commitTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column demand_order.status
     *
     * @return the value of demand_order.status
     *
     * @mbggenerated Sat Sep 28 21:20:23 CST 2019
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column demand_order.status
     *
     * @param status the value for demand_order.status
     *
     * @mbggenerated Sat Sep 28 21:20:23 CST 2019
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column demand_order.field1
     *
     * @return the value of demand_order.field1
     *
     * @mbggenerated Sat Sep 28 21:20:23 CST 2019
     */
    public String getField1() {
        return field1;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column demand_order.field1
     *
     * @param field1 the value for demand_order.field1
     *
     * @mbggenerated Sat Sep 28 21:20:23 CST 2019
     */
    public void setField1(String field1) {
        this.field1 = field1 == null ? null : field1.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column demand_order.field2
     *
     * @return the value of demand_order.field2
     *
     * @mbggenerated Sat Sep 28 21:20:23 CST 2019
     */
    public String getField2() {
        return field2;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column demand_order.field2
     *
     * @param field2 the value for demand_order.field2
     *
     * @mbggenerated Sat Sep 28 21:20:23 CST 2019
     */
    public void setField2(String field2) {
        this.field2 = field2 == null ? null : field2.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table demand_order
     *
     * @mbggenerated Sat Sep 28 21:20:23 CST 2019
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", demandId=").append(demandId);
        sb.append(", orderNumber=").append(orderNumber);
        sb.append(", userinfoId=").append(userinfoId);
        sb.append(", commitTime=").append(commitTime);
        sb.append(", status=").append(status);
        sb.append(", userInfo=").append(userInfo);
        sb.append(", demand=").append(demand);
        sb.append(", field1=").append(field1);
        sb.append(", field2=").append(field2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}